package ModelLayer;

/**
 * Write a description of class Lease here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Lease
{
    private long id;
    private String startDate;
    private String specReturnDate;
    private String actReturnDate;
    private RentItem rentItem;
    private Customer customer;
    private boolean status;
    
    /**
     * Constructor for objects of class Lease.
     */
    
    public Lease()
    {
        this.status = true;
        this.actReturnDate = null;
    }
    
    public Lease(long id, String startDate, String specReturnDate)
    {
        this.id = id;
        this.startDate = startDate;
        this.specReturnDate = specReturnDate;
        this.status = true;
        this.actReturnDate = null;
    }
    
    public void setId(long inId)
    {
        id = inId;
    }

    public void setStartDate(String inStartDate)
    {
        startDate = inStartDate;
    }

    public void setSpecReturnDate(String inSpecReturnDate)
    {
        specReturnDate = inSpecReturnDate;
    }

    public void setActReturnDate(String inActReturnDate)
    {
        actReturnDate = inActReturnDate;
    }
    
    public void setStatusTrue()
    {
        status = true;
    }
    
    public void setStatusFalse()
    {
        status = false;
    }
    
    public void setRentItem(RentItem _rentItem)
    {
        rentItem = _rentItem;
    }
    
    public void setCustomer(Customer _customer)
    {
        customer = _customer;
    }

    public long getId()
    {
        return id;
    }

    public String getStartDate()
    {
        return startDate;
    }

    public String getSpecReturnDate()
    {
        return specReturnDate;
    }

    public String getActReturnDate()
    {
        return actReturnDate;
    }

    public boolean getStatus()
    {
        return status;
    }
    
    public RentItem getRentItem()
    {
        return rentItem;
    }
    
    public Customer getCustomer()
    {
        return customer;
    }
}
